<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<%@ taglib prefix="zjf" uri="http://www.zjf.com.cn/mytag" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
</head>
<body>
<!-- 分页功能 start -->
<html:link action="/control/group/groupList.do?page=1">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/control/group/groupList.do?page=${p}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/control/group/groupList.do?page=${pageBean.totalPage }">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}
<!-- 分页功能 end -->
	<table class="table">
						<tr class= "row2">
							
							<td>权限组名</td>
							<td>等级</td>
							<td>初始</td>
							<td>权限集</td>
							<td>修改</td>
							<td>删除</td>
							
						</tr>
						<c:forEach items="${datas}" var="data">
						<tr class= "row1">
							
							<td>${data.name}</td>
							<td>${data.level }</td>
							<td>${data.isDefault}</td>
							<td width="400">
							<c:forEach items="${data.privileges}" var="p" varStatus="s">
								${p.name}&nbsp; <c:if test="${s.count%4 == 0}"><br/></c:if>
							</c:forEach> 
							</td>
							<td><zjf:privilege value="control.userGroup.edit"><html:link action="/control/group/groupView.do?id=${data.id}">修改</html:link> </zjf:privilege></td>
							<td><zjf:privilege value="control.userGroup.delete"><html:link action="/control/group/groupDelete.do?id=${data.id}">删除</html:link></zjf:privilege> </td>
						</tr>
						</c:forEach>
	</table>
<!-- 分页功能 start -->
<html:link action="/control/group/groupList.do?page=1">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/control/group/groupList.do?page=${p}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/control/group/groupList.do?page=${pageBean.totalPage }">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}
<!-- 分页功能 end -->
</body>
</html>